package work.base.data.stream;


import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
 *
 *
 *
 */
public class StreamTest00 {
    public static void main(String[] args){


        Map<String, String> map = Stream.of("one", "two", "three", "four")
                .collect(Collectors.toMap((item->item), Function.identity()));

        Map<String, String> map2 = Stream.of("one", "two", "three", "four")
                .collect(Collectors.toMap(item->item, item->item));

        System.out.println("END");


    }
}
